
<section>

    


    <div class="details_container_hbe">
    
    <h1>Booking Summary</h1>
    <p class="details_container_hotel"><?= $hotel["hotel_name"] ?></p>
    <p class="details_container_resort"><?=$hotel["hotel_resort"]?>, <?=$hotel["hotel_destination"]?></p>
    
    <div class="details_thumb_hbe">
        
        <img src="<?=$hotel["thumb"]?>" alt="<?=$hotel["extra"]["name"]?>"  />
            <p class="hbe_popup"><a href="/hotels/popup_hotel_details.html" class="frame">Full Details</a></p>
    </div>
       
        
    <p class="hbe_booking_details_row hbe_bdr_vert"><strong>Check-In:</strong> <span><?= date("l jS \of F Y", $results["arrival_date"])?></span></p>
    
    
    <p class="hbe_booking_details_row hbe_bdr_vert"><strong>Check-Out:</strong> <span><?= date("l jS \of F Y", $results["arrival_date"]+$results["nights"]*86400)?></span></p>
    

<? 
for($i=1; $i<=$results["rooms_count"]; $i++): 

?> 
    
    <p class="hbe_booking_details_room_title">Room <?=$i?></p>
    
    <p class="hbe_booking_details_row"><strong>Adults:</strong> <span><?=$hotel["room_sets"][$i]["adults"]?></span></p>
    <p class="hbe_booking_details_row"><strong>Children:</strong> <span><?=$hotel["room_sets"][$i]["children"]?></span></p>
    <p class="hbe_booking_details_row"><strong>Room Type:</strong> <span><?= $hotel["room_sets"][1]["rooms"][$room_ids[$i]]["Type"]?> (<?=$hotel["room_sets"][1]["rooms"][$room_ids[$i]]["Board"]?>)</span></p>
        
<? endfor ?>  
     

    
    </div>
    
    <?
    
    $ex_vat = round(($booking_details['total'] / 1.23), 2, PHP_ROUND_HALF_UP); 
    $vat = round(($booking_details['total'] - $ex_vat), 2, PHP_ROUND_HALF_UP) ;
    $surcharge = round((($booking_details['total'] * CREDIT_CARD_FREE)/100), 2,PHP_ROUND_HALF_UP );
    
    ?>
    
    
    <div class="fees_container_hbe" id ="fees_container_hbe">
        
        <p><strong>Room:</strong><span>&euro;<?= number_format($ex_vat, 2, '.', '')  ?></span></p>
        <p><strong>VAT:</strong><span>&euro;<?= number_format($vat, 2, '.', '')  ?></span></p>
        <div  id="surcharge"><p><strong>Surcharge:</strong><span>&euro;<?= number_format($surcharge, 2, '.', '')  ?></span></p></div>        
       
        <hr/>
        
        <div id="total_without_surcharge"><p class="hbe_fee_total"><strong>Total Price:</strong><span>&euro;<?= number_format($booking_details['total'], 2, '.', '') ?></span></p></div>
        <div id="total_credit_card"><p class="hbe_fee_total"><strong>Total Price:</strong><span>&euro;<?= number_format( $booking_details['total'] + $surcharge, 2, '.', '') ?></span></p></div>
        
    </div>
    
    
    
    <p class="hbe_popup hbe_link_bc" ><a href="/hotels/popup_terms_booking.html" class="frame">Booking Conditions</a></p>
    
</section>